﻿using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using toDoList.Models;

namespace toDoList.ViewModels
{
    
    public class MainViewModel
    {
        public ObservableCollection<MenuItem> menuItems;

        public ObservableCollection<MenuItem> MenuItems
        {
            get { return menuItems; }
            set { menuItems = value; }
        }

        public  MainViewModel()
        {
            MenuItems = new ObservableCollection<MenuItem>();

            //\xe636代表图标字体的代码
            MenuItems.Add(new MenuItem() { Icon = "\xe636", Name = "我的一天", Counter = 999 });
            MenuItems.Add(new MenuItem() { Icon = "\xe614", Name = "重要", Counter = 999 });
            MenuItems.Add(new MenuItem() { Icon = "\xe8b4", Name = "已计划日程", Counter = 999 });
            MenuItems.Add(new MenuItem() { Icon = "\xe64e", Name = "分配给你", Counter = 999 });
            MenuItems.Add(new MenuItem() { Icon = "\xe6d3", Name = "任务", Counter = 999 });

        }


    }
}
